package com.kdtech.text.Summary;

import com.spreada.utils.chinese.ZHConverter;
/**
 * 繁体 简体 转换
 * @author kd-12
 *
 */
public class ChangeCode {
	/**
	 * 繁体转简体
	 * @param txt
	 * @return
	 */
    public static String toSimple(String txt){
    	if (txt!=null){
    		ZHConverter converter = ZHConverter.getInstance(ZHConverter.SIMPLIFIED);
    		return converter.convert(txt);
    	}
    	return txt;
    }
    public static void main(String[] args) {
		String txt="郭台銘之怒";

		String simple = ChangeCode.toSimple(txt);
		System.out.println(simple);
	}
}
